/* eslint-disable no-new */
import Vue from 'vue';
import Vconsole from 'vconsole';
import App from './App.vue';
import router from './router';
import store from './store';

Vue.config.productionTip = false;

new Vconsole();

const app = {
  // eslint-disable-next-line space-before-function-paren
  init () {
    document.addEventListener('deviceready', () => {
      new Vue({
        router,
        store,
        render: (h) => h(App),
      }).$mount('#app');
    }, false);
  },
};

app.init();
